# Contributor: Orson Teodoro <orsonteodoro@hotmail.com>
# Maintainer: Jacek Pruciak <alpine@juniorjpdj.pl>

pkgname=powerline-extra-symbols
pkgver=0_git20191017
pkgrel=0
pkgdesc="Extra glyphs for your powerline separators"
url="https://github.com/ryanoasis/powerline-extra-symbols"
arch="noarch"
license="MIT"
depends="fontconfig"
subpackages="$pkgname-doc"
options="!check" # upstream has no unit test
_gitrev="ae05de7c51f6609479f4f1a4a0f6f65631731c1b"
source="$pkgname-$pkgver.tar.gz::https://github.com/ryanoasis/powerline-extra-symbols/archive/$_gitrev.tar.gz"
builddir="$srcdir/"$pkgname-$_gitrev

package() {
	install -d "$pkgdir"/usr/share/fonts/$pkgname \
		"$pkgdir"/usr/share/doc/$pkgname/
	install -t "$pkgdir"/usr/share/fonts/$pkgname/ \
		"$builddir"/PowerlineExtraSymbols.otf
	install -t "$pkgdir"/usr/share/doc/$pkgname/ "$builddir"/README.md
}

sha512sums="74da67b2b7eed1549aa1c2107839d1e8d790813d40cbf0588390ee625b94cc27cc33dbcb4f15e915da5db964618cf3bc830057a8983ca654e41f8dec93fac392  powerline-extra-symbols-0_git20191017.tar.gz"
